package com.tgy.algorithm.base._图_02;

import java.util.ArrayList;
import java.util.List;

public class Node<V>{
    V value;
    // 入度
    int in;
    // 出度
    int out;
    List<Node<V>> nexts;
    List<Edge<V>> edges;

    public Node(V value) {
        this.value = value;
        this.in = 0;
        this.out = 0;
        this.nexts = new ArrayList<>();
        this.edges = new ArrayList<>();
    }
}
